package com.jgp.glmeeting.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jgp.sys.common.model.UUIDModel;
import com.jgp.sys.ui.TreeBean;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDate;

/**
 * 会议表
 */
@Entity
@Table(name="gl_Meeting")
public class Meeting extends UUIDModel {
    @Column(name="name",length = 50)
    private String name ;//会议名称

    @Column(name = "content",length = 2000)
    private String content;//内容

    @Column(name="place",length = 50)
    private String place;//会议地点

    @Column(name="meetingRoom")
    private String meetingRoom;//会议室编号

    @Column(name="zbf",length = 50)
    private String  zbf;//主办方zbf

    @Column(name="zblPhone",length = 50)
    private String  zbfPhone;//主办方电话

    @Column(name="meetType")
    private String meetType;//与会类型

    @Column(name="meetPart")
    private String meetPart;//与会范围


    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @Column(name = "startDate")//会议开始时间
    private LocalDate startDate;

    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    @Column(name = "endDate")//会议结束时间
    private LocalDate endDate;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getZbf() {
        return zbf;
    }

    public void setZbf(String zbf) {
        this.zbf = zbf;
    }

    public String getZbfPhone() {
        return zbfPhone;
    }

    public void setZbfPhone(String zbfPhone) {
        this.zbfPhone = zbfPhone;
    }

    public String getMeetType() {
        return meetType;
    }

    public void setMeetType(String meetType) {
        this.meetType = meetType;
    }

    public String getMeetPart() {
        return meetPart;
    }

    public void setMeetPart(String meetPart) {
        this.meetPart = meetPart;
    }

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public Meeting() {

    }
    public  Meeting(String name,String id){
            super.setId(id);
            this.name =  name; }

    public String getMeetingRoom() {
        return meetingRoom;
    }

    public void setMeetingRoom(String meetingRoom) {
        this.meetingRoom = meetingRoom;
    }
}
